package fx.learn;


import javafx.application.Application;
import javafx.stage.Stage;

/**
 * main4
 * application的生命周期
 * @author xzp
 * @date 2021/03/23
 */
public class Main4 extends Application {

    public static void main(String[] args) {
        System.out.println("main! ---> " + Thread.currentThread().getName());
        launch(args);
    }

    @Override
    public void init() throws Exception {
        System.out.println("init! ---> " + Thread.currentThread().getName());
    }

    @Override
    public void stop() throws Exception {
        System.out.println("stop! ---> " + Thread.currentThread().getName());

    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        System.out.println("start! ---> " + Thread.currentThread().getName());
        primaryStage.show();
    }
}
